.color-type {
  font-size: 13px;
  padding: 5px 0;
}

.text-colors {
  font-size: 14px;
  overflow: hidden;

  div {
    float: left;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #eee;
    cursor: pointer;
    margin: 4px 3px;
    box-sizing: border-box;

    &.active {
      box-shadow: 0 0 0 2px #296eff;
    }

    &:hover {
      box-shadow: 0 0 0 2px #296eff30;
    }
  }
}

.background-colors {
  font-size: 14px;
  overflow: hidden;


  div {
    float: left;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px 3px;
    color: #fff;

    &.active {
      box-shadow: 0 0 0 2px #296eff;
    }

    &:hover {
      box-shadow: 0 0 0 2px #296eff30;
    }
  }
}

.no-background {
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  box-sizing: border-box;

  &:before {
    content: "";
    width: 100px;
    position: absolute;
    height: 1px;
    background: #aaa;
    transform: rotate(-45deg);
    top: 0;
    left: -28px;
  }
}

.background {
  width: 1em;
  height: 1em;
  display: inline-block;
  text-align: center;
  position: relative;
  margin-right: 6px;

  > span {
    position: absolute;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 4px;
    top: -2px;
    left: -2px;
  }
}
